/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package service;

import bean.Book;
import bean.Books;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Service;

/**
 *
 * @author root
 */
@Service
public class BookService {
    public Books getBooks(){
        Books books = new Books();
        List<Book> bookList = new ArrayList<>();
        Book book = new Book();
        book.setBookId(1L);
        book.setBookName("java");
        book.setPublisher("zhang");
        bookList.add(book);
        books.setBookList(bookList);
        return books;
    }
}
